Repository navigation
用类型化 listener 适配 msg-buffer 的 on-fill - #77
Merged
Merged
Conversation
新增 app.schema/typed-listener:解码器处理一次事件,handler 直接接收 FillEvent 与 DispatchOp 回调。on-fill 不再手写 RespoListener 的开放 handler 字段,未知事件仍被忽略。 同步质量预算中 typed-listener 的 intentional-open Dynamic 上限。
tiye
force-pushed
the
refine/msgbuffer-typed-listener
branch
from
November 15, 2026 11:20
67ffdfd to
d852a48
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
对使用者的影响
输入框的填充/提交行为、草稿更新和快捷键保持不变。
on-fill仍然只处理FillEvent,未知事件继续被忽略;区别是 listener 的开放事务边界集中到了app.schema/typed-listener,handler 直接声明FillEvent,不再手写RespoListener的:handler字段。改动与风险
app.schema/typed-listener:解码器 + 具体事件类型 handler,内部把 Respo 的异构事件边界收成一次解码;未知事件返回 Unit。app.comp.container/on-fill改用该工厂,删除外层的try-decode-map-as/match嵌套。respo.schema/typed-listener;当前不升级 Respo 依赖。app.schema/typed-listener的schema-dynamic/intentional-open: 1上限,对应工厂内部唯一的开放解码输入。Dynamic开放边界,但它只存在于工厂内部;on-fill的事件类型已固定为FillEvent。验证
calcit calcit.cirru --check-only --all-defs:0 failedcalcit calcit.cirru test --require-match --summary-only:11 passedcalcit calcit.cirru fix --workflow strict --verify:passedcalcit calcit.cirru jscodegen 通过